<template>
  <view class="container">
    <view>
      <!-- 提示信息弹窗 -->
      <uni-popup ref="message" type="center">
        <uni-popup-message
          :type="msgType"
          :message="messageText"
          :duration="2000"
        ></uni-popup-message>
      </uni-popup>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      type: "center",
      msgType: "success",
      messageText: "这是一条成功提示",
      value: "",
    };
  },
  props: ["Render"],
  watch: {
    Render(val) {
      if (val == 0) {
        this.messageText = "手机巴掌大小！，价格3元";
        this.$refs.message.open();
      } else if (val == 1) {
        this.messageText = "手机巴掌大小！鞋盒子大小，价格4元";
        this.$refs.message.open();
      } else if (val == 2) {
        this.messageText = "手机巴掌大小！ 重量超过5公斤，价格10元";
        this.$refs.message.open();
      }
    },
  },
};
</script>>

<style>
</style>